<template>
	<view class="container">
		<view style="margin: 30rpx;">
			<rich-text :nodes="detail"></rich-text>	
		</view>
		
	</view>
</template>

<script>
	import {mapMutations} from 'vuex';
	import Api from '@/common/api';
	export default{
		
		data(){
			return {
				id:0,
				detail:''
			}
		},
		onLoad(){
			
		},
		onShow(){
			let option = this.$api.currentPageOption();
			this.id = option.id;
			this.loadDetail()
		},
		methods: {
			...mapMutations(['login']),
			
			async loadDetail(){
				
				let data = await Api.apiCall('get',Api.apiName.help_detail,{id:this.id},true);
				if(!data){
					return;
				}
				this.detail =data.data.content;
				uni.setNavigationBarTitle({
					title:data.data.title
				})
			},
			
		},

	}
</script>

<style lang='scss'>
	page{
		background: #FFFFFF;
	}
	
</style>
